package com.myproject.mall.domain.vo;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public class ViewGoodsHistoryVO {
    private GoodsVO goods;
    private LocalDateTime viewTime;

    public ViewGoodsHistoryVO(GoodsVO goods) {
        this.goods = goods;
        this.viewTime = LocalDateTime.now();
    }
}
